import request from '@/utils/request'

export function getSmsProducts(data) {
  return request({
    url: '/sms/products',
    method: 'post',
    data
  })
}

export function createSmsProducts(data) {
  return request({
    url: '/sms/product/create',
    method: 'post',
    data
  })
}

export function updateSmsProducts(data) {
  return request({
    url: '/sms/product/update',
    method: 'post',
    data
  })
}

export function deleteSmsProducts(data) {
  return request({
    url: '/sms/product/delete',
    method: 'post',
    data
  })
}

export function createSmsOrder(data) {
  return request({
    url: '/sms/order/create',
    method: 'post',
    data
  })
}

export function getSmsOrder(data) {
  return request({
    url: '/sms/order/list',
    method: 'post',
    data
  })
}

export function cancelSmsOrder(data) {
  return request({
    url: '/sms/order/cancel',
    method: 'post',
    data
  })
}

export function paidSmsOrder(data) {
  return request({
    url: '/sms/order/paid',
    method: 'post',
    data
  })
}

export function getSmsSendLog(data) {
  return request({
    url: '/sms/message/log',
    method: 'post',
    data
  })
}
export function getSmsSetting(data) {
  return request({
    url: '/sms/message/settings',
    method: 'post',
    data
  })
}

export function createSmsSetting(data) {
  return request({
    url: '/sms/message/setting-create',
    method: 'post',
    data
  })
}

export function updateSmsSetting(data) {
  return request({
    url: '/sms/message/setting-update',
    method: 'post',
    data
  })
}

export function getSmsTemplates(data) {
  return request({
    url: '/sms/message/templates',
    method: 'post',
    data
  })
}
export function getSmsSignList(data) {
  return request({
    url: '/sms/sign-name/list',
    method: 'post',
    data
  })
}

export function sendSmsNotify(data) {
  return request({
    url: '/sms/message/notify',
    method: 'post',
    data
  })
}

